<?php
foreach($query as $row)
{
 echo $row->user_name;
}
?>